package cn.jobstart.search;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import cn.jobstart.pubInter.BaseSearch;
import cn.jobstart.model.Job;
import java.util.Date;
import java.util.List;
import java.math.BigDecimal;
import lombok.Data;
/**
*   @author sunke
*   @Date 2023-09-22 22:03:52
*   @description JobSearch      职位名称
*/


@Data
@ApiModel("职位名称JobSearch")
public abstract class JobSearch<Sub extends JobSearch<Sub>> extends BaseSearch {
    @ApiModelProperty(value = "主键")
    private List idIn;
    @ApiModelProperty(value = "大于排序")
    private Integer sortNumGreater;
    @ApiModelProperty(value = "小于排序")
    private Integer sortNumLess;
    @ApiModelProperty(value = "是否显示 1:是:Y,0:否:N")
    private List showFlagIn;
    @ApiModelProperty(value = "是否删除 1:删除:Y,0:正常:N")
    private Integer delFlagEq=0;
    @ApiModelProperty(value = "版本")
    private Integer versionEq;
    @ApiModelProperty(value = "职位名称")
    private String nameLike;
    @ApiModelProperty(value = "职位上级ID")
    private String upIdEq;
    @ApiModelProperty(value = "备注")
    private String remarkLike;
    @ApiModelProperty(value = "大于等级")
    private Integer levelGreater;
    @ApiModelProperty(value = "小于等级")
    private Integer levelLess;
    @ApiModelProperty(value = "是否有下级 1:有:Y,0:无:N")
    private List nextFlagIn;

    public JobSearch() {
        setDelFlagEq(0);
    }



    /**
    * 返回子类Sub
    * @return
    */
    public abstract Sub getSubThis();

    @Override
    public String createTimeFiled() {
        return Job.CREATE_TIME;
    }
    @Override
    public String updateTimeFiled() {
        return Job.UPDATE_TIME;
    }
    @Override
    public String  setDefaultField() {
        return Job.CREATE_TIME;
    }
    @Override
    public String pkField() {
        return Job.ID;
    }

    @Override
    public String  toString() {
        return "JobSearch{}"+super.toString();
    }
    public Sub setIdIn(List idIn){
        this.idIn = idIn;
        setInField(Job.ID, idIn);
        return getSubThis();
    }
    public Sub setSortNumGreater(Integer sortNumGreater){
        this.sortNumGreater = sortNumGreater;
        setGreaterField(Job.SORT_NUM, sortNumGreater);
        return getSubThis();
    }
    public Sub setSortNumLess(Integer sortNumLess){
        this.sortNumLess = sortNumLess;
        setLessField(Job.SORT_NUM, sortNumLess);
        return getSubThis();
    }
    public Sub setShowFlagIn(List showFlagIn){
        this.showFlagIn = showFlagIn;
        setInField(Job.SHOW_FLAG, showFlagIn);
        return getSubThis();
    }
    public Sub setDelFlagEq(Integer delFlagEq){
        this.delFlagEq = delFlagEq;
        setEqualField(Job.DEL_FLAG, delFlagEq);
        return getSubThis();
    }
    public Sub setVersionEq(Integer versionEq){
        this.versionEq = versionEq;
        setEqualField(Job.VERSION, versionEq);
        return getSubThis();
    }
    public Sub setNameLike(String nameLike){
        this.nameLike = nameLike;
        setLikeField(Job.NAME, nameLike);
        return getSubThis();
    }
    public Sub setUpIdEq(String upIdEq){
        this.upIdEq = upIdEq;
        setEqualField(Job.UP_ID, upIdEq);
        return getSubThis();
    }
    public Sub setRemarkLike(String remarkLike){
        this.remarkLike = remarkLike;
        setLikeField(Job.REMARK, remarkLike);
        return getSubThis();
    }
    public Sub setLevelGreater(Integer levelGreater){
        this.levelGreater = levelGreater;
        setGreaterField(Job.LEVEL, levelGreater);
        return getSubThis();
    }
    public Sub setLevelLess(Integer levelLess){
        this.levelLess = levelLess;
        setLessField(Job.LEVEL, levelLess);
        return getSubThis();
    }
    public Sub setNextFlagIn(List nextFlagIn){
        this.nextFlagIn = nextFlagIn;
        setInField(Job.NEXT_FLAG, nextFlagIn);
        return getSubThis();
    }
}